package event

// Event 事件对象
type Event struct {
	Topic string
	Data  interface{}
}

// NewEvent 新建事件
func NewEvent(topic string, data interface{}) *Event {
	return &Event{topic, data}
}